package com.xl.rpc.server;

import com.xl.rpc.Request;
import com.xl.rpc.common.utils.ReflectUtils;

/**
 * @author 辜圆圆
 * @description: gzy的项目
 * @date 2020/3/91:39 AM
 */
public class ServiceInvoke {
    public Object invoke(ServiceInstance service, Request request){
        return ReflectUtils.invoke(service.getTarget(),service.getMethod(),request.getParameters());

    }
}
